<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePicAlbumsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::dropIfExists('pic_albums');
		Schema::create('pic_albums', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('name', 32)->comment('名称');
			$table->string('description', 500)->nullable()->comment('描述');
			$table->integer('listorder');
			$table->timestamps();
			$table->softDeletes();
			$table->integer('sp_id')->nullable()->comment('服务商ID');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('pic_albums');
	}

}
